 package handling.opcode;

 import configs.ServerConfig;



















































































































































































































































































































































































































































































































































































































































































































 public enum RecvNewOpcode
 {
/* 697 */   Count(2011, 155);

/* 699 */   private int code = -2;
/* 700 */   private int version = 152;

   RecvNewOpcode(int code) {
/* 703 */     this.code = code;
   }

   RecvNewOpcode(int code, int version) {
/* 707 */     this.code = code;
/* 708 */     this.version = version;
   }

   public static String getNamebyID(int val) {
/* 712 */     for (RecvNewOpcode op : values()) {
/* 713 */       if (op.getVersion() == ServerConfig.LOGIN_MAPLE_VERSION && 
/* 714 */         op.getValue() == val) {
/* 715 */         return op.name();
       }
     }

/* 719 */     return "UNKNOWN";
   }

   public static int getIDbyName(String val) {
/* 723 */     for (RecvNewOpcode op : values()) {
/* 724 */       if (op.name() == val) {
/* 725 */         return op.getValue();
       }
     }
/* 728 */     return -2;
   }


   public short getValue() {
/* 733 */     return (short)this.code;
   }


   public void setValue(short code) {
/* 738 */     this.code = code;
   }

   public int getVersion() {
/* 742 */     return this.version;
   }


   public void setVersion(int version) {
/* 747 */     this.version = version;
   }
 }


/* Location:              C:\PGX\Server.jar!\handling\opcode\RecvNewOpcode.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */